#ifndef __PH_H
#define __PH_H
double ph_value(int vol)	//vol为ADC输出电压
{
	double res;
	double v=vol/1000.0;	//转化为实际电压
	res=-5.887*v+21.677;
	return res;
}
#endif
